package com.wandian.audio.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.mylib.libcore.utils.GlideUtil;
import com.wandian.audio.R;
import com.wandian.audio.bean.MusicSingerBean;

/**
 * 歌手-适配器
 */
public class AudioSingerRecycleAdapter extends BaseQuickAdapter<MusicSingerBean.ArtistsEntity, BaseViewHolder> {

    public AudioSingerRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, MusicSingerBean.ArtistsEntity item) {
        RoundedImageView iv_author_head = helper.getView(R.id.iv_author_head);
        GlideUtil.into(mContext,item.getPicUrl(),iv_author_head);
        helper.setText(R.id.tv_author_name, item.getName()+"")
                .setText(R.id.tv_music_number, "歌曲："+item.getMusicSize())
                .setText(R.id.tv_album_size, "专辑："+item.getAlbumSize()+"");

    }

}
